

package ModelLayer;


/**
 * @author
 *
 */
public class Forestilling {
	//instance variable
    private Film film;
    private int forestillingId;
   
	private String fremvisningsdato; 
    private String start, slut;
    private Sal sal;
      
    //Creates a new instance of Sale 
    public Forestilling() 
    {
    }

    public Forestilling( int id, String dato, String start, String slut,Film film, Sal sal) {
    	forestillingId = id;
    	fremvisningsdato = dato;
    	this.start = start;
    	this.slut = slut;
    	this.film = film;
    	this.sal = sal;
    } 
    
    public Forestilling(Film film, int forestillingId, String fremvisningsdato, String start, String slut,
			Sal sal) 
    {
		this.film = film;
		this.forestillingId = forestillingId;
		this.fremvisningsdato = fremvisningsdato;
		this.start = start;
		this.slut = slut;
		this.sal = sal;
	}
    
    public Forestilling(int forestillingId) 
    {
		this.forestillingId = forestillingId;
	}
    
	public Forestilling(String dato, String start, String slut,Film film, Sal sal) {
    	forestillingId = 0;
    	fremvisningsdato = dato;
    	this.start = start;
    	this.slut = slut;
    	this.film = film;
    	this.sal = sal;
    }  

	//set methods
    public void setFilm(Film filmTitel)
    {
        this.film = filmTitel;
    }
    public void setFremvisningsDato(String dato)
    {
        this.fremvisningsdato = dato;
    }
    public void setStart(String start)
    {
        this.start = start;
    }     
	public void setSlut(String slut)
	    {
	        this.slut = slut;
	    }    	    
    public void setSal(Sal sal)
    {
        this.sal = sal;
    }	   	   
    
  //get method
    public Film getFilm()
    {
        return film;
    }
    public String getFremvisningsDato()
    {
        return fremvisningsdato;
    }
    public String getStart()
    {
        return start;
    }
    public String getSlut()
    {
        return slut;
    }
    public Sal getSal()
    {
        return sal;
    }
	public int getForestillingId() {
		return forestillingId;
	}
	public void setForestillingId(int forestillingId) {
		this.forestillingId = forestillingId;
	}
}
